import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { CommunityUserInfoEntity } from '../../entity/user_info';
import { CommunityUserService } from '../../service/user';

/**
 * 用户资料
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: CommunityUserInfoEntity,
  service: CommunityUserService,
  pageQueryOp: {
    keyWordLikeFields: ['a.nickname'],
    fieldEq: ['a.status', 'a.region'],
    fieldLike: [],
  },
})
export class AdminCommunityUserController extends BaseController {
  @Inject()
  communityUserService: CommunityUserService;
  @Inject()
  ctx;
}
